<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="YangZi(zy13122170989@gmail.com)" />
<title><?php echo SITE_TITLE?></title>
<script type="text/javascript" src="<?php echo site_url('dwz/js/jquery-1.4.4.min.js');?>"></script>
<link rel="stylesheet" type="text/css" href="<?php echo site_url('dwz/themes/css/login.css');?>" />
</head>
<body>
<div id="login">
	<div id="login_header">
		<h1 class="login_logo"><?php echo SITE_TITLE?></h1>
	</div>
	<div id="login_content">
		<div class="loginForm">

			<form id="login_form" method="post" action="<?php echo site_url('index.php?m=user&a=login');?>">
				<p>
					<label>帐号：</label>
					<input type="text" name="user_name" size="20" class="login_input" />
				</p>
				<p>
					<label>密码：</label>
					<input type="password" name="password" size="20" class="login_input" />

				</p>
				<div class="login_bar">
					<input class="sub" type="submit" value=" " />
				</div>
			</form>
		</div>
	</div>

	<div id="login_footer">
		Copyright &copy; 2011 WhoopsFeed.com Inc. All Rights Reserved.
	</div>
</div>
<script type="text/javascript">
(function($){
    $('#login_form').submit(function(){
        fel = $('input[name="user_name"]');
        if($.trim(fel.val()) == ''){
            alert('用户名不能为空！');
            fel.focus();
            return false;
        }
        
        fel = $('input[name="password"]');
        if($.trim(fel.val()) == ''){
            alert('密码不能为空！');
            fel.focus();
            return false;
        }
    });
})(jQuery);
</script>
</body>
</html>